﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess;
using OTA.Notification.Entity;

namespace OTA.Notification.Entity.Model.Message
{
    /// <summary>
    ///实体类
    ///对应表名:MSG_WEB
    /// </summary>
    [Serializable]
    [Table(Name = "MSG_WEB")]
    public class WebMsgBean
    {
        private int _id;

        private string _sender = String.Empty;
        private string _senderaccount = String.Empty;
        private string _receiveraccount = String.Empty;
        private string _level = String.Empty;
        private string _state = String.Empty;
        private DateTime _reg_time = new DateTime(1900, 1, 1);
        private DateTime _read_time = new DateTime(1900, 1, 1);

        private string _msg_title = String.Empty;
        private string _msg_content = String.Empty;


        #region Public 成员


        [Column(Name = "MSG_WEB_ID"), PK]
        public int ID
        {
            get { return _id; }
            set
            {

                _id = value;

            }
        }

        [Column(Name = "SENDER")]
        public string Sender
        {
            get { return _sender; }
            set
            {

                if (value == null) return;
                if (_sender as object == null || !_sender.Equals(value))
                {
                    _sender = value;
                }
            }
        }

        [Column(Name = "SENDER_ACCOUNT")]
        public string SenderAccount
        {
            get { return _senderaccount; }
            set
            {

                if (value == null) return;
                if (_senderaccount as object == null || !_senderaccount.Equals(value))
                {
                    _senderaccount = value;
                }
            }
        }

        [Column(Name = "RECEIVER_ACCOUNT")]
        public string ReceiverAccount
        {
            get { return _receiveraccount; }
            set
            {

                if (value == null) return;
                if (_receiveraccount as object == null || !_receiveraccount.Equals(value))
                {
                    _receiveraccount = value;
                }
            }
        }

        [Column(Name = "LEVEL")]
        public string Level
        {
            get { return _level; }
            set
            {

                if (value == null) return;
                if (_level as object == null || !_level.Equals(value))
                {
                    _level = value;
                }
            }
        }

        [Column(Name = "STATUS")]
        public string Status
        {
            get { return _state; }
            set
            {

                if (value == null) return;
                if (_state as object == null || !_state.Equals(value))
                {
                    _state = value;
                }
            }
        }


        [Column(Name = "REG_TIME")]
        public DateTime RegTime
        {
            get { return _reg_time; }
            set
            {

                _reg_time = value;

            }
        }


        [Column(Name = "READ_TIME")]
        public DateTime ReadTime
        {
            get { return _read_time; }
            set
            {

                _read_time = value;

            }
        }


        [Column(Name = "MSG_TITLE")]
        public string MsgTitle
        {
            get { return _msg_title; }
            set
            {

                if (value == null) return;
                if (_msg_title as object == null || !_msg_title.Equals(value))
                {
                    _msg_title = value;
                }
            }
        }

        [Column(Name = "MSG_CONTENT")]
        public string MsgContent
        {
            get { return _msg_content; }
            set
            {

                if (value == null) return;
                if (_msg_content as object == null || !_msg_content.Equals(value))
                {
                    _msg_content = value;
                }
            }
        }

        #endregion 

    }
}
